﻿namespace Micro.Extensions.Data
{
    /// <summary>
    /// 数据库配置
    /// </summary>
    public class DataConfig
    {
        /// <summary>
        /// 主链接
        /// </summary>
        public string MasterConn { get; set; }
        /// <summary>
        /// 从库链接
        /// </summary>
        public string[] ReplicasConn { get; set; }

        /// <summary>
        /// sql 执行耗费超出设置时常记录警告日志
        /// </summary>
        public int ExecuteSqlElapsedTimeWarning { get; set; } = 1000;

    }
}
